package com.grj.parking.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.grj.parking.domain.ParkingLot;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Pageable;

import java.io.IOException;
import java.util.List;

/**
* @author ganru
* @description 针对表【parking_lot(停车场信息表（含经纬度）)】的数据库操作Service
* @createDate 2025-09-02 03:28:07
*/
public interface ParkingLotService extends IService<ParkingLot> {

    boolean fullSyncToEs() throws Exception;

    List<ParkingLot> searchNearby(double latitude, double longitude, double distance, int pageNum, int pageSize) throws IOException;

    Page<ParkingLot> fuzzySearchByLotName(String lotName, Pageable pageable);
}
